<template>
  <div class="abstract-wrapper">
    <h3>摘要:</h3>
    <p v-if="props.data.detail.overview">
      {{ props.data.detail.overview }}
    </p>
    <p v-else style="color: #999">暂无摘要</p>
    <div style="margin-top: 20px">
      <div style="font-size: 18px; font-weight: 700">关键词：</div>
      <template v-if="props.data.keywords.length">
        <el-text v-for="(item, index) in props.data.keywords" :key="index">
          {{ item.keyword_name }}
          <span v-if="index !== props.data.keywords.length - 1">，</span>
        </el-text>
      </template>
      <span v-else style="color: #999">暂无关键词</span>
    </div>
  </div>
</template>
<script setup lang="ts">
import { ref, watch, computed, watchEffect, onMounted, onUnmounted } from 'vue'
const props = defineProps({
  data: {
    type: Object,
    default: () => ({}),
  },
})
</script>
<style scoped lang="scss"></style>
